package sort;

import java.util.Arrays;

public class selectSort {
    public static void main(String[] args) {
        int[] arr = new int[]{10,25,67,2,14,37,88,66,22,11,19};
        for (int i = 0;i <= arr.length-1;i++){
            for (int j = i;j < arr.length;j++){
                if (arr[i] > arr[j]){
                    int temp = arr[i];
                    arr[i] = arr[j];
                    arr[j] = temp;
                }
            }
        }
        System.out.println(Arrays.toString(arr));
    }
}
